package com.itheima.day03;

public class Test01 {
    public static void main(String[] args) {
        int sum = 0;

        for (int year = 1; year <=20 ; year++) {
            //计算本年的种树数量
            int count = year * 60;
            //将本年种的树的数量累加给sum
            sum += count;
        }

        //输出sum即是20年种的树的总量
        System.out.println("sum = " + sum);
    }
}
